FROM ibm-semeru-runtimes:open-8-jre
ADD target/ruoyi-admin.jar /opt/ruoyi-admin.jar
CMD ["--server.port=8080"]
EXPOSE 8080
ENTRYPOINT ["java","-jar","-Xms512m","-Xmx2048m","/opt/ruoyi-admin.jar"]
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
  && echo 'Asia/Shanghai' >/etc/timezone